package main

import "fmt"

func main() {
	total_weight := 100
	num := 8

	fmt.Println("average =", total_weight/num)
	fmt.Println("average =", float32(total_weight)/float32(num))

	/**
	var num1 float32 = num
	fmt.Println("num1: ", num1)
	上述代码报如下错误：
	cannot use num (variable of type int) as float32 value in variable declaration
	原因是Go语言中不支持隐式类型转换，只能使用type_name(expression)进行显示转换
	*/
}
